<!---
@自动生成 BY Kupe框架 www.kupebank.com
#date : 2017-10-28 12:00:56
#path : app/template/admin/develop.addop.html
--->

<style>
.__is_admin__{
	display:none;
}
</style>
<form class="layui-form" action="" style="padding:10px;width:450px;">
  <div class="layui-form-item">
    <label class="layui-form-label">模块名称</label>
    <div class="layui-form-label"><label>{$rs.name}<label></div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">已有的操作:</label>
    {foreach $op as $k => $v}
		{$v.method}&nbsp;&nbsp;
		{/foreach}
  </div>

   <div class="layui-form-item">
    <label class="layui-form-label">操作名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" required  lay-verify="required" placeholder="请操作名称" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">方法名称</label>
    <div class="layui-input-block">
      <input type="text" name="method" required  lay-verify="required" placeholder="请输入唯一标识,相同模块下不可重复" class="layui-input">
    </div>
  </div>

   <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">操作简介</label>
    <div class="layui-input-block">
      <!--<textarea name="desc" placeholder="请输入操作简介" class="layui-textarea"></textarea>-->
	  <input type="text" name="desc" placeholder="请输入操作简介" class="layui-input">
    </div>
  </div>


  
  

    <div class="layui-form-item">
  <div class="layui-inline">
    <label class="layui-form-label">是否开启</label>
     <div class="layui-input-inline" style="width: 100px;">
      <input type="checkbox" class="layui-input" name="status" value=1 checked lay-skin="switch">
    </div>

	 <label class="layui-form-label">是否菜单</label>
     <div class="layui-input-inline" style="width: 100px;">
      <input type="checkbox" class="layui-input" name="is_menu" value=1 checked lay-skin="switch">
    </div>
	</div>
  </div>
  <!----
  <div class="layui-form-item">
    <label class="layui-form-label">是否开启</label>
    <div class="layui-input-block">
      
	  <input type="radio" name="status" value="0" title="关闭">
      <input type="radio" name="status" value="1" title="开启" checked>
	   {html_radios value='开启' options=array('开启','关闭') name="status"}
	 

	 
    </div>
  </div>
 --->
 <div class="layui-form-item">
    <label class="layui-form-label">所属位置</label>
    <div class="layui-input-block">      
	   {html_radios value='1' options=array(0=>'前台',1=>'后台') name="is_admin"}	 
    </div>
  </div>
 
   
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">菜单模板</label>
    <div class="layui-input-block">
	  <input type="text" name="tpl" placeholder="菜单模板,实现后台的自定义风格,可选" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">排序</label>
      <div class="layui-input-inline" style="width: 60px;">
        <input type="text" name="porder" placeholder="" class="layui-input" value="{$porder}">
      </div>
       <label class="layui-form-label">网址参数</label>
      <div class="layui-input-inline" style="width: 130px;">
        <input type="text" name="other" placeholder="网址的其它参数,可选"  class="layui-input">
      </div>
    </div>
  </div>

  
  



  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn" lay-submit lay-filter="formDemo2">提交后继续添加</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
  <input type="hidden" name="module" value="{$rs.module}">
</form>
 
<script>
formSubmit('{_url m="doaddop"}','formDemo2','reset');
formSubmit('{_url m="doaddop"}','formDemo','url:{_url m='index' ajax=1}');

</script>